package com.suyuan.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.suyuan.dao.TestBeanDao;
import com.suyuan.entity.TestBean;
import com.suyuan.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by yang on 2018/1/9.
 */
@Service(value = "testService")
public class TestServiceImpl implements TestService {

    @Resource(name="testBeanDao")
    private TestBeanDao testBeanDao;

    public List<TestBean> test1() {
        return testBeanDao.findAll();
    }

   /* public List<Feedsin> getFeedsinList() {
        List<Feedsin> feedsins = feedsinDao.getFeedsinList();
        return feedsins;
    }*/

    /*public List<User> getUserList() {
        List<User> users = userDao.selectAll();
        return users;
    }*/

   /* public List<User> getUserByPage() {
        PageHelper.startPage(1,4);
        List<User> users = userDao.selectAll();
        PageInfo info = new PageInfo(users);
        System.out.println("pageNum:"+info.getPageNum());
        System.out.println("pageCount:"+info.getPageSize());
        System.out.println("total:"+info.getTotal());
        return info.getList();
    }*/
}
